

package com.hazelcast.internal.config;

import com.hazelcast.config.DiskTierConfig;
import com.hazelcast.config.MemoryTierConfig;
import com.hazelcast.config.TieredStoreConfig;

public class TieredStoreConfigReadOnly extends TieredStoreConfig {

    public TieredStoreConfigReadOnly(TieredStoreConfig config) {
        super(config);
    }

    @Override
    public TieredStoreConfigReadOnly setEnabled(boolean enabled) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public TieredStoreConfigReadOnly setMemoryTierConfig(MemoryTierConfig memoryTierConfig) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public TieredStoreConfigReadOnly setDiskTierConfig(DiskTierConfig diskTierConfig) {
        throw new UnsupportedOperationException("This config is read-only");
    }
}
